<template>
  <div>
    <h1>study</h1>
    <h2><a href="/excel/upload-excel">dddddd</a></h2>
    <h2>
      <router-link :to="{path: '/more/learn'}">Register</router-link>
    </h2>
    <h2>
      <router-link to="/more/study/studyUpExcel">studyUpExcel</router-link>
    </h2>
    <Button type="primary" @click="testAxios">
      click me
    </Button>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: "study-index",
    methods:{
      testAxios(){
        this.$axios.post('userLogin/more', {username: 'super_admin', password: 'lak110110'}).then(p => {
          if (p.data.result.length > 0) {
            this.$Message.info('登陆成功');
            console.log(p)
          }
          else {
            this.$Message.info('登陆失败');
          }
        })
      }

    }
  }
</script>

<style scoped>

</style>
